x86/pmtimer: fix hvm_acpi_sleep_button behavior
authorVarad Gautam <vrd@amazon.de>
Mon, 18 Mar 2019 15:59:43 +0000 (16:59 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 18 Mar 2019 15:59:43 +0000 (16:59 +0100)
commit0c0f0ab5ab58fef59d357897749553f610cf7101
treec19613c4ea79cbb087049be8ab867d12cf3c5989
parente984846dad81218bbd8cbaec6df8e8a3530726dc
x86/pmtimer: fix hvm_acpi_sleep_button behavior

Commit 19fb14622e941 "x86/pmtimer: move ACPI registers from PMTState to
hvm_domain" misconfigures pm1a_sts for hvm_acpi_sleep_button with
PWRBTN_STS instead of SLPBTN_STS, which leads to
XEN_DOMCTL_SENDTRIGGER_SLEEP causing guest powerdowns. Fix this.

Signed-off-by: Varad Gautam <vrd@amazon.de>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: b22c900c44a2db8db1c53e269e152206e55c273f
master date: 2019-02-20 17:06:25 +0100
xen/arch/x86/hvm/pmtimer.c